package api

import (
	"context"
	"zhonghui/console/warehouse/respx"

	"github.com/gin-gonic/gin"
)

func (server *Server) GetProviderInfo(c *gin.Context) {
	resp, err := server.store.GetSysProviderInfo(context.Background())
	if err != nil {
		respx.Alert(c, "查询失败")
		return
	}
	respx.Success(c, resp, nil)
}
